package xyz.zhzby.cyzx.cms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import xyz.zhzby.cyzx.servicebase.domain.DataLogInfo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 文章表
 * </p>
 *
 * @author zby
 * @since 2021-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("cms_article")
@ApiModel(value="Article对象", description="文章表")
public class Article extends DataLogInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "摘要")
    @TableField("summary")
    private String summary;

    @ApiModelProperty(value = "内容ID")
    @TableField("content_id")
    private Long contentId;

    @ApiModelProperty(value = "状态（0草稿1发布2回收站）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "发布者")
    @TableField("user_id")
    private Long userId;


}
